package org.ideo.hibernateJap.web.pages.users;

import java.util.List;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.ideo.hibernateJap.domain.model.User;
import org.ideo.hibernateJap.services.UserManager;

public class UsersIndex {
	
	@Inject
	private UserManager userManager;
	
	@Property
	private User user;
	
	public List<User> getUserList() {
		return userManager.findAll();
	}
	
	public void onActionFromDeleteUser(Integer userId) {
		//userManager.remove(userId);
	}
}
